home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
X11
/
xgas.z
/
xgas
Wrap
Text File
|
1998-10-30
|
4KB
|
133 lines
XXXXGGGGAAAASSSS((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 5555)))) XXXXGGGGAAAASSSS((((1111))))
NNNNAAAAMMMMEEEE
xgas - animated simulation of an ideal gas
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
xxxxggggaaaassss [-option ...]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_x_g_a_s is a physical simulation of an ideal gas in a heated
box. Gas molecules move around the box with velocities
dependent on their temperature. A chamber consisting of two
boxes contains the gas molecules; the temperature of each
box can be independently controlled by a scrollbar. When
gas molecules collide with the walls, their temperature
approaches that of the box.
Use mouse button 1 to create molecules one at a time at the
cursor position. Use mouse button 2 to create the maximum
number of molecules at the cursor position.
OOOOPPPPTTTTIIIIOOOONNNNSSSS
This is a toolkit program;
all the usual toolkit options are available.
----ttttssss Sets the timeStepSize resource.
----dddd Sets the delay resource.
----rrrrbbbb Sets the randomBounce resource.
----eeeeqqqq Sets the equilibrium resource.
----mmmmmmmm Sets the maxMolecules resource.
----ffffgggg Sets the foreground.
----bbbbgggg Sets the background.
RRRREEEESSSSOOOOUUUURRRRCCCCEEEESSSS
The _x_g_a_s program uses the following X resources:
ttttiiiimmmmeeeeSSSStttteeeeppppSSSSiiiizzzzeeee
Specifies the simulated time duration in
microseconds for each cycle of computation.
ddddeeeellllaaaayyyy Specifies the real time interval between timestep
computations.
rrrraaaannnnddddoooommmmBBBBoooouuuunnnncccceeee
In each wall collision, a molecule bounces
elastically (angle of incidence = angle of
reflection). A component of randomness is added to
this angle. RandomBounce varies from 0.0 (no
Page 1 (printed 4/30/98)
XXXXGGGGAAAASSSS((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 5555)))) XXXXGGGGAAAASSSS((((1111))))
randomness) to 1.0 (completely random angle of
incidence).
eeeeqqqquuuuiiiilllliiiibbbbrrrriiiiuuuummmm
During each wall collision, a molecule's kinetic
energy approaches that corresponding to the
temperature of the wall. If equilibrium is 1.0, the
molecule reaches the wall temperature immediately.
For values between 1.0 and 0.0, the molecule
approaches the temperature of the wall more slowly.
mmmmaaaaxxxxMMMMoooolllleeeeccccuuuulllleeeessss
Specifies the maximum number of molecules in the
simulation.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
X(1), xwd(1)
BBBBUUUUGGGGSSSS
When the chamber is resized, molecules should be rearranged
appropriately. Instead, the molecule arrays are
reinitialized.
CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
Copyright 1991, Massachusetts Institute of Technology.
AAAAUUUUTTTTHHHHOOOORRRR
Larry Medwin
Page 2 (printed 4/30/98)